package com.example.myapplication.RoomFile

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity
class Word() {

    @PrimaryKey(autoGenerate = true)
    var id: Int = 0

    @ColumnInfo(name = "english_word")
    lateinit var word: String

    @ColumnInfo(name = "chineseMeaning")
    lateinit var chineseMeaning: String

    constructor(word: String,chineseMeaning: String) : this() {
        this.word = word
        this.chineseMeaning = chineseMeaning
    }

}